//
//  BleBatchConfigStreamHandler.swift
//  tuya_home_sdk_flutter
//

import Flutter

class BleBatchConfigStreamHandler: NSObject, FlutterStreamHandler {
    var batchSink: FlutterEventSink?

    func onListen(withArguments arguments: Any?, eventSink events: @escaping FlutterEventSink) -> FlutterError? {
        self.batchSink = events
        return nil
    }

    func onCancel(withArguments arguments: Any?) -> FlutterError? {
        self.batchSink = nil
        return nil
    }
}
